home *** CD-ROM | disk | FTP | other *** search
- <HTML>
-
- <HEAD>
-
- <link REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
-
- <script language="Javascript">
- //LOCALIZATION STRINGS
-
- var _strDomainNameTooLong = "Please limit the domain name to 255 characters.";
- var _strDomainNameMissing = "Please enter a domain name.";
-
- var _strServerNameTooLong = "Please limit the server name to 255 characters.";
- var _strServerNameMissing = "Please enter a server name.";
-
- var _strPosIntPort= "The port value must be a whole number greater than zero.";
-
- var _strUserNameTooLong = "Please limit the user name to 255 characters.";
-
- var _strPasswordTooLong = "Please limit the password to 255 characters.";
-
- var _strSendAddressTooLong = "Please limit the sender address to 255 characters.";
- var _strSendAddressNameMissing = "Please enter a sender address in the From field.";
-
- </script>
-
- <script language=Javascript>
- function onSubmit()
- {
- if ( !checkStringParam (document.forms.destForm.domainName, _strDomainNameTooLong, _strDomainNameMissing))
- return;
- if ( !checkStringParam (document.forms.destForm.serverName, _strServerNameTooLong, _strServerNameMissing))
- return;
-
- // Check port
- var regNumber = /^^\d+$/
- var portvalue = document.forms.destForm.port.value;
- if(!regNumber.test(portvalue) || portvalue == 0)
- {
- alert(_strPosIntPort);
- document.forms.destForm.port.focus();
- return;
- }
-
- if ( !checkStringParam (document.forms.destForm.smtpUserName, _strUserNameTooLong))
- return;
- if ( !checkStringParam (document.forms.destForm.smtpPassword, _strPasswordTooLong))
- return;
- if ( !checkStringParam (document.forms.destForm.senderAddress, _strSendAddressTooLong, _strSendAddressNameMissing))
- return;
-
- // Submit the properies
- document.destForm.submit();
- }
-
- function checkStringParam (ele, lengthMsg) // Optional 3rd param missginMsg
- {
- var isOK = true;
- var str = ele.value;
-
- // Optionally check existence
- if (arguments.length == 3)
- {
- var missingMsg = arguments[2];
- if (str.length == 0)
- {
- alert(missingMsg);
- isOK = false;
- }
- }
- if (str.length > 255)
- {
- alert(lengthMsg);
- isOK = false;
- }
-
- if (!isOK)
- ele.focus();
-
- return isOK;
- }
-
- function onCancel()
- {
- document.forms[0].reset();
- }
-
- function addProperty()
- {
- var destForm = 'destForm';
- var prop = document.forms[destForm].props.options[document.forms[destForm].props.selectedIndex].value;
- document.forms[destForm].specname.value = document.forms[destForm].specname.value + prop;
- document.forms[destForm].specname.focus();
- }
-
- function onSetFileDisabled()
- {
- onSetFilenameDisabled( !document.destForm.useattachmentchk.checked );
- document.destForm.useattachment.value = document.destForm.useattachmentchk.checked;
- }
-
- function addLink()
- {
- var prop = "%SI_VIEWER_URL%";
- document.forms['destForm'].msg.value = document.forms['destForm'].msg.value + "\n" + prop;
- document.forms['destForm'].msg.focus();
- }
- </script>
-
- </HEAD>
-
- <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload='onSetFileDisabled()'>
- <form action="%2" method="post" name="destForm" target="_self">
-
- <table width='95%'>
- <tr><td><table>
-
- <tr>
- <td class="list">Domain Name:</td>
- <td class="list"><input name="domainName" value="%3" size=40></td>
- </tr>
-
- <tr>
- <td class="list">Server Name:</td>
- <td class="list"><input name="serverName" value="%4" size=40></td>
- </tr>
-
- <tr>
- <td class="list">Port:</td>
- <td class="list"><input name="port" value="%5" size=4></td>
- </tr>
-
-
- <tr>
- <td class="list">Authentication:</td>
- <td class="list">
- <select name="authenticationType">
- %6
- </select></td>
- </tr>
-
- <tr>
- <td class="list">SMTP User Name:</td>
- <td class="list"><input name="smtpUserName" value="%7" size=40></td>
- </tr>
-
- <tr>
- <td class="list">SMTP Password:</td>
- <td class="list"><input type=password name="smtpPassword" value="%8" size=40></td>
- </tr>
-
- <tr>
- <td class="list">From:</td>
- <td class="list"><input name="senderAddress" value="%9" size=40></td>
- </tr>
-
- <tr>
- <td class='list'>To:</td>
- <td class='list'><input name='to' size=40 value='%10'></td>
- </tr>
-
- <tr>
- <td class='list'>Cc:</td>
- <td class='list'><input name='cc' size=40 value='%11'></td>
- </tr>
-
- <tr>
- <td class='list'>Subject:</td>
- <td class='list'><input name='subject' size=40 value='%12'></td>
- </tr>
-
- <tr>
- <td class='list' valign='top'>Message:</td>
- <td class='list'><textarea wrap='virtual' name='msg' rows='7' cols='40'>%13</textarea><BR>
- Add viewer hyperlink to message body <input type="button" name="addLinkBtn" onclick="addLink();" value = " Add ">
- </td>
- </tr>
-
- </table></td></tr>
- </table>
-
- <table>
- <tr>
- <td class='list' valign='top'><input type=checkbox name='useattachmentchk' %15 onclick="javascript:onSetFileDisabled();"></td>
- <td class='list' valign='middle'> Attach report instance to email message <input type='hidden' name='useattachment' value="true"></td>
- </tr>
- <tr>
- <td class='list' valign='top'> </td>
- <td class='list' valign='top'>
- %14
- </td>
- </tr>
- </table>
- <br>
-
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0 width=20%>
- <tr>
- <td>
- <table cellpadding=0 border=0>
- <tr>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:onSubmit()">Update</a></div></td>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: onCancel()">Reset</a></div></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- </form>
- </BODY>
- </HTML>
-